package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Table(name = "cn_omc_medic_record")
public class OmcMedicRecord extends BaseEntity {

    /**
     * 用药计划id
     */
    @Column(name = "medic_plan_id")
    private Long medicPlanId;

    /**
     * 负责人姓名
     */
    @Column(name = "user_name")
    private String userName;

    /**
     * 时间
     */
    private String date;

    /**
     * 吃药时间段
     */
    @Column(name = "time_slice")
    private String timeSlice;

    /**
     * 护工组id
     */
    @Column(name = "nursing_group_id")
    private Long nursingGroupId;

    /**
     * 状态 1-未提交 2-申请中 3-护工领任务 4-护工确认 5-班长确认
     * 6-领取任务超时 7-护工确认超时 8-班长确认超时 9-班长补签
     */
    private Integer state;

    /**
     * 喂药时间
     */
    @Column(name = "record_time")
    private String recordTime;

    /**
     * 班长补签批注
     */
    private String comment;

    /**
     * 流程id
     */
    @Column(name = "process_instance_id")
    private String processInstanceId;

    /**
     * 机构Id
     */
    @Column(name = "group_id")
    private Long groupId;
}